package demo1225.pm;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Properties;

public class Demo_03 {
    public static void main(String[] args) {
        Properties pro = new Properties();
        pro.setProperty("101","tom");
        pro.setProperty("102","tom");
        pro.setProperty("103","tom");

        try (FileOutputStream fos = new FileOutputStream
                ("pao.properties")) {
            pro.store(fos,"");
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
